For this markdown document, I created several plotting functions, site assigned plots to variables, then printed them using ggarrange.

I've outlined the steps as headers.

- Import Data
- - Create Add NA Function

For graphing with goem_line - if timestamps don't exist, the plot will draw a line connecting the data gap. To prevent that, we add in those time stamps and assign NA's to the parameter

- - Create Assignwatershed Function

To add colors to plots

- Nutrient Plot Functions and Execution

Store each nutrient plot as a variable to print later.
There are three nutrient plotting functions in two chunks:

- Plot All Continuous Data Parameters

Use plotting function to store each plot as a variable to print later.

- Ploting all pH Continuous Data, plots zoomed in on highes value, and pH Flux

The first two chunks of code define plotting functions for pH and pH Flux. The last chunk finds the max pH value for each of the sites, and sets the x limits of the pH plots to be a short time around that, effectively zooming in on that value. Then, it uses the functions to store those plots as a variable for every site.

- Calculate and plot pH flux

This chunk uses the tidyquant library to calculate daily pH summaries. That data is used in a pH flux plotting function.

- Creating data frames of summarized pH data
- Duration and Magnitude of Exposures Function

This function provides the duration of exceedance of data below threshold, and tells you how many points in each exceedance event were below each division number. For example, if the pH exceeded 8.5, for that particual event, this function could give you the number of point (time) it was above 9, 9.5, and 10, not just 8.5.

- Duration Magnitude of Exposures Execution

Calibration Plots of of Site-3 January/February 2019

Tile Plot (Heat Map Over Time) of Site Exceedances

Create and print CDF curves for each site

Creating and printing plots of pH by hour

Finally learned how to store plots in a list rather than name a variable for every single plot.

Plotting Data By Watershed

Stressor Identification Thresholds

Chl a/phaeopigment ratio: low ratio should indicate high algal senescence and potential decomposition

Printing the saved nutrient parameter plots

Printing 4 plots of Data by Site

Printing DO plots

Printing Duration Magnitude Plots

Testing interactive dygraphs